home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / Blix / blix.dxr / Script_46_ArrayHandler.ls < prev    next >
Encoding:
Text File  |  1999-04-28  |  643 b   |  35 lines

  1. global gbumpermaparray
  2.  
  3. on makeArray arrayCol, arrayRaw
  4.   repeat with xCell = 1 to arrayCol
  5.     repeat with yCell = 1 to arrayRaw
  6.       writeArray(xCell, yCell, "....")
  7.     end repeat
  8.   end repeat
  9.   return 
  10. end
  11.  
  12. on writeArray x, y, value
  13.   if count(gbumpermaparray) >= x then
  14.     ytemp = getAt(gbumpermaparray, x)
  15.   else
  16.     ytemp = []
  17.   end if
  18.   setAt(ytemp, y, value)
  19.   setAt(gbumpermaparray, x, ytemp)
  20. end
  21.  
  22. on readArray x, y
  23.   ytemp = []
  24.   ytemp = getAt(gbumpermaparray, x)
  25.   value = getAt(ytemp, y)
  26.   return value
  27. end
  28.  
  29. on myDelayTimer myTime
  30.   myLimit = the timer + myTime
  31.   repeat while the timer < myLimit
  32.     nothing()
  33.   end repeat
  34. end
  35.